rename one dataframe column python

31

rename one dataframe column python -

#suppy as dict the column name to replace
df1 = df.rename(columns={'Name': 'EmpName'})
print(df1)

Comments

Submit
0 Comments